
import request from "@/utils/request"

// 获取数据列表 /admin/acl/role/1/5?roleName=
export const getroleList =(current,page,roleName)=>{
  return request.get(`/admin/acl/role/${current}/${page}?roleName=${roleName}`)
}
// 获取树类列表 /admin/acl/permission/toAssign/undefined
export const getToAssign = (id) =>{
  return request.get(`/admin/acl/permission/toAssign/${id}`)
}
// 保存树节点 /admin/acl/permission/doAssign?roleId=1&permissionId=
export const setdoAssign = (userId,roleId)=>{
  return request.post(`/admin/acl/permission/doAssign?roleId=${userId}&permissionId=${roleId}`)
}